package com.juyu.miliao.scheduler.dao.mysql;

import com.juyu.miliao.scheduler.domin.Appkey;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class AppkeyDao {
	@Resource
	private SqlSession sqlSession;
	
	public Appkey getAppkeyByKey(String key){
		return sqlSession.selectOne("getAppkeyByKey", key);
	}

	public List<Appkey> findAllAppkey() {
		return sqlSession.selectList("findAllAppkey");
	}
	public int updateIsH5Buy(String val){
		return sqlSession.update("updateIsH5Buy",val);
	}

	
}
